Appointment Scheduling Process API - Implementation Template
Developer guide
Appointment Scheduling Dev Guide
The Appointment Scheduling Process API application uses the following DataWeave modules to be used in Appointment Scheduling(Search,Get,Create,Cancel) and Slot(Get and Search)
Module | Description | |
---|---|---|
cerner-error-mapping | Generate error message for Cerner Include the request URL and the value cerner | |
epic-error-mapping | Generate error message for Epic Include the request URL and the value epic | |
filter_slot_search_form | Generate Slot Search Post Body with updated parameters The parameter names from HealthCloud are not compatible with Cerner This code updates the parameter names and sends only those parameters that are either prefixed with source | or do not contain any mention of a source to each individual source Map from input request |
cerner-error-mapping
Generate error message for Cerner
Include the request URL and the value cerner
Source:
.src/main/resources/dw/ApptScheduling/cerner-error-mapping.dwl
epic-error-mapping
Generate error message for Epic
Include the request URL and the value epic
Source:
.src/main/resources/dw/ApptScheduling/epic-error-mapping.dwl
filter_slot_search_form
Generate Slot Search Post Body with updated parameters
The parameter names from HealthCloud are not compatible with Cerner
This code updates the parameter names and sends only those parameters that are either prefixed with
source| or do not contain any mention of a source to each individual source
Map from input request
Source:
.src/main/resources/dw/ApptScheduling/filter_slot_search_form.dwl
Functions
fun filterBySource (value, filterBy, sourceList)
Filters string to return only matched values Calls helper functions checkSourceinValue and removeString Assumes input string is a comma separated string with multiple values
param
value
string to be filtered
paramfilterBy
string to be used for filtering
paramsourceList
is list of sources defined in config-{env}.yaml
fun checkSourceinValue (value, sourceList)
Function to check if input string contains one of the sources identified in config-{env}.yaml's defined sources
param
value
string to be checked for sources
paramsourceList
is list of sources defined in config-{env}.yaml
fun mapStartDates (startArray)
Generates start dates for Slot Search using payload.start, which is a repeating element